package mianxiangduixiang.Week8.Exam5;

import mianxiangduixiang.Week8.Exam3.Circle;
import mianxiangduixiang.Week8.Exam3.Rectangle;
import mianxiangduixiang.Week8.Exam3.Shape;

/**
 * @Author JetZhang
 * @Date 2021/11/2
 */
public class TestV2 {
    public static void main(String[] args) {
        Shape shape = new Rectangle(5, 5);
        Shape shape1 = new Circle(5);
        System.out.println(shape.toString());
        System.out.println(shape1.toString());
        System.out.println("长方形面积" + shape.getArea());
        System.out.println("圆形面积" + shape1.getArea());
    }
}
